package fileDemo;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo8 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis1=null;
        try{
             fis1 = new FileInputStream("D:/Project/java/java-biog/" +
                    "Day20250312/IO测试文件目录/测试图片.png");
            while(true){
                int ch = fis1.read();
                if(ch == -1){
                    break;
                }
                System.out.println(ch);
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally{
            fis1.close();
        }
    }
}
